package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;

import java.util.Objects;

@Table("question_version")
@Style(Upper2Underline = true)
public class QuestionVersion extends AbstractBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = -904242313917006758L;

    @Column("version_str")
    private String versionStr;

    public QuestionVersion() {
    }

    public String getVersionStr() {
        return versionStr;
    }

    public void setVersionStr(String versionStr) {
        this.versionStr = versionStr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QuestionVersion that = (QuestionVersion) o;
        return Objects.equals(versionStr, that.versionStr);
    }

    @Override
    public int hashCode() {
        return Objects.hash(versionStr);
    }

    @Override
    public String toString() {
        return "QuestionVersion{" +
                "versionStr='" + versionStr + '\'' +
                '}';
    }
}
